package com.fmdj.bff.driver.service.impl;

import com.fmdj.bff.driver.controller.form.InsertOrderGpsForm;
import com.fmdj.bff.driver.entity.InsertOrderGpsVo;
import com.fmdj.bff.driver.feign.NebulaServiceApi;
import com.fmdj.bff.driver.service.OrderGpsService;
import com.fmdj.common.util.CommonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
@Slf4j
public class OrderGpsServiceImpl implements OrderGpsService {

    @Autowired
    private NebulaServiceApi nebulaServiceApi;
    @Override
    public int insertOrderGps(InsertOrderGpsForm form) {
        CommonResult r = nebulaServiceApi.insertOrderGps(form);
        Integer rows = (Integer) r.get(CommonResult.RETURN_ROW);
        return rows;
    }
}
